<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .pageFormContent .textInput { width: 220px; }
    .gray { color: gray; }
</style>
    <div class="pageContent" style="padding-top: 1px;width:400px;height:200px;">
        <form id="pagerForm" method="post" action="<c:url value='/dangerInfo/th?id=${id}'/>" class="pageForm required-validate"
              onsubmit="return validateCallback(this,callbackForSubmit);">
            <div class="pageFormContent"style="height: 100px;">

                <p style="width: 100%;">
                    <label for="txt_remark">退回原因：</label>
                    <textarea id="txt_remark"  rows="5" cols="7" name="backreason" value="" required></textarea>
                </p>

            </div>
            <div class="formBar" style="margin-top: 5px;">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">保存</button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="button">
                            <div class="buttonContent">
                                <button type="button" class="close">取消</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </form>
    </div>


<script type="text/javascript">
    function callbackForSubmit(resp, st, xhr) {
        if (resp && resp.succ) {
            alertMsg.info(resp.msg + "!");
            $.pdialog.closeCurrent();
            navTab.reloadFlag('page_sureJD_index')
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
</script>